]> dgit.raspbian.org Git - gnome-shell.git/commit
st/theme-node: Consider scale factor when comparing
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 3 Apr 2020 20:44:54 +0000 (17:44 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 6 Apr 2020 14:24:30 +0000 (11:24 -0300)
commitc9cfeb831830a00a1b4edb3f226c782150cdff58
tree791609a7c6a671c20acde2b9778d7d4eacb523e0
parent497e66ce6a1e008253a5d3da9461012b656b0b93
st/theme-node: Consider scale factor when comparing

The CSS engine of St is scale-aware, which means every length
and size it produces is multiplied by the current scale factor.

However, the individual nodes aren't aware of the scale factor
when they compare to each other.

Store and compare the scale factors in the nodes themselves.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/1635

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1176
src/st/st-theme-node-private.h
src/st/st-theme-node.c